﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/TempAdmin.master" CodeFile="NewDetails.aspx.cs" Inherits="admin_NewDetails" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="NewDetailContent" runat="server" ContentPlaceHolderID="ContentRight">
      <form id="NewDetailForm" runat="server">
         <table>
            <tr>
               <td>
                 <table>
                    <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="50px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                            <asp:Label ID="lblHeader" runat="server" Text="Chi tiết tin tức" ForeColor="#003300" Font-Size="Large" Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="20px" />
                        </td>   
                        <td>
                        </td> 
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                            <asp:Label ID="lblTextMessage" runat="server" ForeColor="#003300"></asp:Label>
                        </td>
                   </tr>
                   <tr>
                        <td style="width: 130px; text-align: right;">
                            <asp:Label ID="lblNewID" runat="server" ForeColor="Black" Text="Mã: " ></asp:Label>    
                        </td>
                        <td style="padding-left:5px">
                            <asp:TextBox ID="txtNewID" runat="server" Enabled="false" ReadOnly="true" ForeColor="Black"></asp:TextBox>
                        </td>
                        <td align="center" rowspan="6" style="width:200px; padding-left:5px">
                            <asp:Image ID="newRepresentImage" runat="server" Width="180px" BorderColor="Black" />
                            <br />
                            <asp:HyperLink ID="hlRepresentImage" runat="server" ForeColor="Black" Visible="false" >Hình 
                            đại diện</asp:HyperLink>
                        </td>
                  </tr>
                  <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="10px" />
                       </td>    
                       <td></td>
                 </tr>
                 <tr>
                        <td style="width: 130px; text-align: right;">
                            <asp:Label ID="lblTitle" runat="server" ForeColor="Black" Text="Tiêu đề: "></asp:Label>
                        </td>
                        <td style="padding-left:5px;">
                            <asp:TextBox ID="txtTitle" runat="server" ForeColor="Black" Width="340px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtTitle" Display="None" 
                                ErrorMessage="Bạn phải nhập tiêu đề cho tin!" ValidationGroup="New_AddUpdate"></asp:RequiredFieldValidator>
                        </td>
                 </tr>
                 <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="10px" />
                        </td>
                        <td></td>    
                </tr>
                <tr>
                        <td style="width: 130px; text-align: right; height: 21px;">
                            <asp:Label ID="lblBriefDesc" runat="server" ForeColor="Black" Text="Mô tả ngắn: "></asp:Label>
                            <br />
                         </td>                
                         <td style="height: 21px;padding-left:5px;">
                            <asp:TextBox ID="txtBriefDesc" TextMode="MultiLine" runat="server" ForeColor="Black" Height="65px" Width="340px"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                 ControlToValidate="txtBriefDesc" Display="None"  
                                 ErrorMessage="Bạn phải nhập mô tả ngắn cho tin !" ValidationGroup="New_AddUpdate"></asp:RequiredFieldValidator>
                         </td>
               </tr>
               <tr>
                        <td>
                           <img src="../img/pixel_trans.gif" height="10px" />
                        </td>    
                        <td></td>
               </tr>
               <tr>
                        <td style="width: 130px; text-align: right;">
                            <asp:Label ID="Label1" runat="server" ForeColor="Black" Text="Nội dung tin: "></asp:Label>
                        </td>
                        <td colspan="2" style="padding-left:5px;">
                            <FCKeditorV2:FCKeditor ID="fckBrief" runat="server" Width="100%" BasePath="~/fckeditor/" Height="500px">
                            </FCKeditorV2:FCKeditor>
                        </td>
              </tr>
              <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="10px" />
                        </td>    
                        <td></td>
              </tr>
              <tr>
                        <td style="width: 130px; text-align: right;">
                            <asp:Label ID="lblDateCreate" runat="server" ForeColor="Black" Text="Ngày đăng tin: "></asp:Label>
                        </td>
                        <td style="padding-left:5px;">
                            <asp:TextBox ID="txtDateCreate" Enabled="false" ReadOnly="false" runat="server"></asp:TextBox>
                        </td>
             </tr>
             <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="10px" />
                        </td> 
                        <td></td>   
            </tr>  
            <tr>
                        <td>
                             <img src="../img/pixel_trans.gif" height="10px" />
                        </td>   
                        <td></td> 
            </tr>
            
            <tr>
                        <td> <img src="../img/pixel_trans.gif" height="10px" /></td>
                        <td></td>
            </tr>
            <tr>
                        <td>
                           
                        </td>
                        <td>
                             <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" Width="72px" 
                                 onclick="btnUpdate_Click" ValidationGroup="New_AddUpdate" />&nbsp;&nbsp;
                             <input id="Reset1" type="reset" runat="server" value="Làm lại" style="width:72px" /> 
                             &nbsp;&nbsp;
                             <asp:Button ID="btnBack" runat="server" Text="Quay Lại" Width="72px" 
                                 onclick="btnBack_Click" />&nbsp;&nbsp;
                             <asp:Button ID="btnDelete" runat="server" Text="Xóa" Width="72px" 
                                 onclick="btnDelete_Click"/>           
                        </td>
            </tr>
            <tr>
               <td> <img src="../img/pixel_trans.gif" height="10px" /></td>
               <td></td>
            </tr>
            <tr>
                <td></td>
                <td>
                     <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" ShowMessageBox="True" ValidationGroup="New_AddUpdate" />
                </td>
            </tr>
        </table>
      </td> 
     </tr>
   </table>   
 </form>
</asp:Content>